﻿$(function () {
    $("#dialog-message").dialog({
        autoOpen: false,
        modal: true,
        show: "blind",
        hide: "explode",
        width: "450px"
    });

    $("#btnOrder").click(function () {
        $("#dialog-message").dialog("open");
        return false;
    });

    $("#dialog-message").parent().appendTo($("#main"));
});

function CloseDialog() {
    $("#dialog-message").dialog("close");
    return false;
}
function changePayment(ddl) {
    if (ddl.value.toUpperCase() == "81461F5F-D54D-4C49-83F5-72821161998A") {
        document.getElementById("bank1").style.visibility = "visible";
        document.getElementById("bank2").style.visibility = "visible";
    }
    else {
        document.getElementById("bank1").style.visibility = "hidden";
        document.getElementById("bank2").style.visibility = "hidden";
    }

}